package com.github.pig.admin.model.entity;

import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.IdType;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 测试表
 * </p>
 *
 * @author xiaosa
 * @since 2018-06-05
 */
@TableName("sys_test")
public class SysTest extends Model<SysTest> {

    private static final long serialVersionUID = 1L;

    @TableId(type = IdType.UUID)
    private String id;
    /**
     * 手机号
     */
    private String phone;
    /**
     * 所属模块
     */
    @TableField("qt_type")
    private String qtType;
    /**
     * 用时
     */
    @TableField("qt_time")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date qtTime;
    /**
     * 问卷问题
     */
    private String ask;
    /**
     * 状态0：完成 1：未完成
     */
    private String status;
    @TableField("create_by")
    private String createBy;
    @TableField("create_date")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date createDate;
    @TableField("update_by")
    private String updateBy;
    @TableField("update_date")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date updateDate;
    @TableField("del_flag")
    private String delFlag;


    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public String getQtType() {
        return qtType;
    }

    public void setQtType(String qtType) {
        this.qtType = qtType;
    }

    public Date getQtTime() {
        return qtTime;
    }

    public void setQtTime(Date qtTime) {
        this.qtTime = qtTime;
    }

    public String getAsk() {
        return ask;
    }

    public void setAsk(String ask) {
        this.ask = ask;
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    public String getCreateBy() {
        return createBy;
    }

    public void setCreateBy(String createBy) {
        this.createBy = createBy;
    }

    public Date getCreateDate() {
        return createDate;
    }

    public void setCreateDate(Date createDate) {
        this.createDate = createDate;
    }

    public String getUpdateBy() {
        return updateBy;
    }

    public void setUpdateBy(String updateBy) {
        this.updateBy = updateBy;
    }

    public Date getUpdateDate() {
        return updateDate;
    }

    public void setUpdateDate(Date updateDate) {
        this.updateDate = updateDate;
    }

    public String getDelFlag() {
        return delFlag;
    }

    public void setDelFlag(String delFlag) {
        this.delFlag = delFlag;
    }

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

    @Override
    public String toString() {
        return "SysTest{" +
        ", id=" + id +
        ", phone=" + phone +
        ", qtType=" + qtType +
        ", qtTime=" + qtTime +
        ", ask=" + ask +
        ", status=" + status +
        ", createBy=" + createBy +
        ", createDate=" + createDate +
        ", updateBy=" + updateBy +
        ", updateDate=" + updateDate +
        ", delFlag=" + delFlag +
        "}";
    }
}
